-- GENERATED SPELL FOR [Storm Rager] --


function spell0_17159(pUnit, Event) --@Call Lightning,n/a--
pUnit:FullCastSpellOnTarget(32018,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17159', 599, 1)
end

function Sorts_17159(pUnit, Event)
local choix_sorts_17159 = math.random(0, 0)
if choix_sorts_17159 == 0 then
pUnit:RegisterEvent('spell0_17159', 1, 1)
end
end

function mob17159_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17159', math.random(1500, 3000), 1)
end

function mob17159_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17159_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17159_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17159, 1, 'mob17159_Action')
RegisterUnitEvent(17159, 2, 'mob17159_Leave')
RegisterUnitEvent(17159, 3, 'mob17159_Kill')
RegisterUnitEvent(17159, 4, 'mob17159_Die')
